package com.lapelife.backend.datasource;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lapelife.backend.model.domain.Post;

import java.util.List;

public abstract class DataSource<T> {

    static {
        System.setProperty("webdriver.chrome.driver", "D:\\env\\Tools\\driver\\chromedriver.exe");
    }

    public abstract Page<T> search(String key);

    public abstract List<Post> findPost(int count, String... key);
}
